package com.ctgu.蓝桥杯真题.B组2018;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.StreamTokenizer;
import java.util.Scanner;

/**
 * @author: Backdiy
 * @data: 2021/4/12 19:34
 * @desc:
 */
/*
一个鸡蛋可以测试 i层
两个鸡蛋可以测试 k+k-1+k-3+...
 */
/*
q
qqqqqqq
qqqqqqq
qqqqqqq
qqqqqqq
qqqqqqq
qqqqqqq
qqqqqqq
7
.......
.##....
.##....
....##.
..####.
...###.
.......

 */
public class D测试次数 {
    public static void main(String[] args) throws IOException {
        StreamTokenizer streamTokenizer = new StreamTokenizer(new BufferedReader(new InputStreamReader(System.in)));
        BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
        Scanner scanner = new Scanner(System.in);
//        streamTokenizer.nextToken();
//        System.out.println(streamTokenizer.nval);
        System.out.println(bufferedReader.readLine().length());
        for (int i = 0; i < 7; i++) {
            System.out.println(bufferedReader.readLine().length());
        }
//        streamTokenizer.nextToken();
//        String sval = streamTokenizer.sval;;
//        System.out.println(sval);
//        streamTokenizer.nextToken();
//        sval = streamTokenizer.sval;
//        System.out.println(sval);
//        streamTokenizer.nextToken();
//        System.out.println(streamTokenizer.nval);
//        streamTokenizer.nextToken();
//        System.out.println("nval:"+streamTokenizer.nval);
//        while (bufferedReader.readLine()!=null){
//        System.out.println("scan" + scanner.nextInt());
//        System.out.print("buff"+bufferedReader.readLine());
//        System.out.println("read"+bufferedReader.read());
//        System.out.println("readLine"+(int)bufferedReader.readLine().length());
//        }
//        System.out.print("scanner"+scanner.next());
//        System.out.print("scanner"+scanner.nextLine());
    }
}
